<?php

class AcctVoucherDTable extends Doctrine_Table
{
    //public function saveVoucherD($voucher_d) {
        //$this->getConnection()
        //Doctrine::getConnectionByTableName($tableName)
        //Doctrine_Connection::beginTransaction();
        //$this->getConnection()->setAttribute($attribute, $value);
        
    //}

    public function getVoucherDetailByVoucherId($voucher_id) {
        
        $q = $this->createQuery()
                ->addWhere("voucherh_id = ?", $voucher_id)
                ->orderBy("id");

        //$q->leftJoin("AcctSubject subject");
        return $q->execute();

    }

    

}